| |
| $yt = 'http://gdata.youtube.com/schemas/2007'; |
|
$md = 'http://search.yahoo.com/mrss/'; |
|
|
|
$xml = simplexml_load_file('https://www.youtube.com/feeds/videos.xml?user=SHERAsolution'); |
|
|
|
foreach($xml->entry as $item) { |
|
|
|
$media = $item->children('yt', $yt); |
|
$id = $media->videoId; |
|
|
|
$media = $item->children('media', $md); |
|
$title = $media->group->title; |
|
$url = $media->group->content->attributes()->url; |
|
$description = $media->group->description; |
|
|
|
} |
|
|
| |